package org.spring.springsecrty.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    /*@PostMapping ("login")

    public String index() {
        System.err.println("开始登录");
        return "login";
    }*/


    @GetMapping("findAll")

    public String findAll() {
        return "findAll";
    }


    @GetMapping("/success")

    public String success(){
        return "success"; }


    @GetMapping("/fail")

    public String fail() {
        return "fail";
    }


    //unauth


   /* @GetMapping("/unauth")

    public String unauth() {
        return "unauth";
    }*/
}